home *** CD-ROM | disk | FTP | other *** search
/ 3D GFX / 3D GFX.iso / pcutils / os2 / imshow / source / im.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-12-31  |  1.2 KB  |  46 lines

  1. /*
  2.  *  im : A General Purpose Image (File) Format
  3.  *
  4.  *  Version 1.0        9/01/1990
  5.  *
  6.  *  Authors: Dieter Schaufelberger, Urs Meyer
  7.  *
  8.  *  Copyright July 1989
  9.  *
  10.  *  University of Zurich, Dept. of Computer Science, Multi-Media Lab,
  11.  *  Winterthurerstrasse 190, CH-8057 Zurich
  12.  */
  13.  
  14. #include <stdio.h>
  15. #include "imgen.h"
  16.  
  17. /* definitions for error handling */
  18.  
  19. extern int imerrnum;       /* contains the error number */
  20.  
  21. char imerrors [20][40] = 
  22.     {
  23. /*      " maximal length error message string    "   */
  24.         "no error",
  25.         "out of memory",
  26.         "wrong image type",
  27.         "wrong file mode",
  28.         "file open returned NULL",
  29.         "file is not an im file",
  30.         "color is not in colormap",
  31.         "colormap index out of range",
  32.         "different major version numbers",
  33.         "different minor version numbers",
  34.         "not enough data for scanline",
  35.         "output file is larger then input file",
  36.         "image type should be IMMAP",
  37.         "wrong storage type",
  38.         "xsize of the image is out of range",
  39.         "ysize of the image is out of range",
  40.         "depth of the image is out of range",
  41.         "# of samples is out of range",
  42.         "# of colors is out of range",
  43.         "image depth is to small for # of colors"
  44.     };
  45.  
  46.